import { createRouter, createWebHistory } from 'vue-router'

const Layout = () => import('@/views/Layout')

const routes = [
  {
    path: '/',
    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/Home/index')
      }
    ]
  }, {
    path: '/play',
    component: () => import('@/views/Home/Play.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
